<template>
	<view>
		<uni-card v-for="temp in deductionList" 
			@tap="getMyList()">
			<text class="uni-body">学号：{{temp.userName}}</text>
			<br>
			<text class="uni-body">部门：{{temp.sysDept.deptName}}</text>
			<br>
			<text class="uni-body">学年：{{temp.gxsYearname.gxsYearname}}</text>
			<br>
			<text class="uni-body">扣分父类型：{{temp.gxsParenttype.gxsParenttypeName}}</text>
			<br>
			<text class="uni-body">扣分子类型：{{temp.gxsSubtype.gxsSubtypeName}}</text>
			<br>
			<text class="uni-body">扣分备注：{{temp.gxsDeductionRemark}}</text>
		</uni-card>
	</view>
</template>


<script>
	import { MyList } from '@/api/gxs/deduction.js'
	export default {
		data() {
			return {
				deductionList: [] //列表
			}
		},
		onLoad() {
			this.getMyList()
		},
		methods: {
			//获取活动列表
			getMyList() {
				MyList().then(response => {
					this.deductionList = response.rows;
				});
			},
		}
	}
</script>

<style lang="scss">
	
	    uni-card {
	        width: 48%;
	        border: 1px solid #ccc;
	        border-radius: 5px;
	        padding: 10px;
	        margin-bottom: 10px;
	        background-color: #f5f5f5; /* 添加背景颜色 */
	        color: #333; /* 添加文本颜色 */
	    }
	    .uni-body {
	        font-size: 16px;
	        line-height: 1.5;
	    }
	
</style>